package com.kgcx.price.mapper;

import com.kgcx.price.domain.TPriceCaculationRule;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

public interface TPriceCaculationRuleMapper extends BaseMapper<TPriceCaculationRule>
{

    /**
     * getByCityIdCarType 根据城市Id,用车类型，取得报价信息列表
     *
     * @param tPriceCaculationRule 报价规则实体类
     * @return TPriceCaculationRule
     * */
    TPriceCaculationRule getByCityIdCarType(TPriceCaculationRule tPriceCaculationRule);


    /**
     * deleteByCityIdCarType 根据城市Id,用车类型，删除报价信息（逻辑删除）
     *
     * @param carType 用车类型
     * @param cityId  城市Id
     * @return int
     * */
//    int deleteByCityIdCarType(int cityId, int carType);

    /**
     * getPriceCaculationRuleList 获取报价信息列表
     *
     * @return int
     * */
    List<TPriceCaculationRule> getPriceCaculationRuleList();

    List<TPriceCaculationRule> getPriceCaculationRuleListByCondition(TPriceCaculationRule tPriceCaculationRule);
}